class Msg {
  String msgId;
  String msgType;
  String sendId;
  String sendName;
  String sendImg;
  String recvId;
  String content;
  String tagPic;
  String tagContent;
  String tagId;
  String createAt;

  Msg(
      {this.msgId,
      this.msgType,
      this.sendId,
      this.sendName,
      this.sendImg,
      this.recvId,
      this.content,
      this.tagPic,
      this.tagContent,
      this.tagId,
      this.createAt,
      });

  Msg.fromJson(Map<String, dynamic> json) {
    msgId = json['msgId'];
    msgType = json['msgType'];
    sendId = json['sendId'];
    sendName = json['sendName'];
    sendImg = json['sendImg'];
    recvId = json['recvId'];
    content = json['content'];
    tagPic = json['tagPic'];
    tagContent = json['tagContent'];
    tagId = json['tagId'];
    createAt = json['createAt'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msgId'] = this.msgId;
    data['msgType'] = this.msgType;
    data['sendId'] = this.sendId;
    data['sendName'] = this.sendName;
    data['sendImg'] = this.sendImg;
    data['recvId'] = this.recvId;
    data['content'] = this.content;
    data['tagPic'] = this.tagPic;
    data['tagContent'] = this.tagContent;
    data['tagId'] = this.tagId;
    data['createAt'] = this.createAt;
    return data;
  }
}
